from super_cooperative import *


class Moveable:
    def __init__(self, x, y):
        self.x = x
        self.y = y
    def draw(self):
        print('Drawing at position:', self.x, self.y)


class MoveableAdapter(Root):
    def __init__(self, x, y, **kwds):
        self.movable = Moveable(x, y)
        super().__init__(**kwds)
    def draw(self):
        self.movable.draw()
        super().draw()


class MovableColoredShape(ColoredShape, MoveableAdapter):
    pass


if __name__ == '__main__':
    mcs = MovableColoredShape(color='red', shapename='triangle', x=10, y=20)
    mcs.draw()
    print(MovableColoredShape.__mro__)
